package com.oschina.wed.dal.entity;

public class AccountVoucherSumTmp {
    private Long accountNo;
    private long incomeAmount = 0;
    private long expendAmount = 0;
    private String accountingDate;

    public void addAmount(long amount) {
        this.incomeAmount += amount;
    }

    public void subAmount(long amount) {
        this.expendAmount += amount;
    }

    public Long getAccountNo() {
        return accountNo;
    }

    public void setAccountNo(Long accountNo) {
        this.accountNo = accountNo;
    }

    public Long getIncomeAmount() {
        return incomeAmount;
    }

    public void setIncomeAmount(Long incomeAmount) {
        this.incomeAmount = incomeAmount;
    }

    public Long getExpendAmount() {
        return expendAmount;
    }

    public void setExpendAmount(Long expendAmount) {
        this.expendAmount = expendAmount;
    }

    public String getAccountingDate() {
        return accountingDate;
    }

    public void setAccountingDate(String accountingDate) {
        this.accountingDate = accountingDate;
    }

    @Override
    public String toString() {
        return "AccountVoucherSumTmp{" +
                "accountNo='" + accountNo + '\'' +
                ", incomeAmount=" + incomeAmount +
                ", expendAmount=" + expendAmount +
                ", accountingDate='" + accountingDate + '\'' +
                '}';
    }
}
